﻿using Abp.Domain.Entities.Auditing;
using Mt.Site.Core.Navigations.Enums;
using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Core.ContentManagement.Entities
{
    /// <summary>
    /// 内容栏目关系表(用于多对多)
    /// </summary>
    public class ContentMenu : CreationAuditedEntity<Guid>
    {
        public long MenuId { get; set; }

        /// <summary>
        /// 新闻、产品等与栏目相关信息的ID 
        /// </summary>
        public Guid ContentId { get; set; }


        public ManagementType ManagementType { get; set; }


        /// <summary>
        /// 模块的实体名（用于区分来源）
        /// </summary>
        [Required]
        [MaxLength(250)]
        public string EntityTypeName { get; set; }

        public Guid? RelateId { get; set; }

        public int Order { get; set; }

        public long PublishTime { get; set; }
    }
}
